import request from '@/utils/request'

// 查询评分-扣分项列表
export function listDeduct(query) {
  return request({
    url: '/workSafetyStandardization/deduct/list',
    method: 'get',
    params: query
  })
}

// 查询评分-扣分项详细
export function getDeduct(deductId) {
  return request({
    url: '/workSafetyStandardization/deduct/' + deductId,
    method: 'get'
  })
}

// 新增评分-扣分项
export function addDeduct(data) {
  return request({
    url: '/workSafetyStandardization/deduct',
    method: 'post',
    data: data
  })
}

// 修改评分-扣分项
export function updateDeduct(data) {
  return request({
    url: '/workSafetyStandardization/deduct',
    method: 'put',
    data: data
  })
}

// 删除评分-扣分项
export function delDeduct(deductId) {
  return request({
    url: '/workSafetyStandardization/deduct/' + deductId,
    method: 'delete'
  })
}
